package test;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Harley
 */
public class ServiceDiscovery {

    public static int CLIENT_ROLE = 1;
    public static int SERVICE_ROLE = 2;
    public static int DIR_ROLE = 3;
    private int role;

    public ServiceDiscovery(int role) {
        this.role = role;
        if (role == CLIENT_ROLE) {
            initClient();
        } else if (role == SERVICE_ROLE) {
            initService();
        } else if (role == DIR_ROLE) {
            initDir();
        }

    }

    private void initClient() {
    }

    private void initService() {
    }

    private void initDir() {
    }
    //for client

    public String[] query() {
        return null;
    }

    public void connectService(String service) {
    }
    // for services

    public void RegService() {
    }

    public void AcceptClient() {
    }
    //for Directory

    public void processQuery() {
    }

    public void processReg() {
    }
}
